package ding.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


public class Book  implements Serializable {
    @Serial
    private static final long serialVersionUID = 2328945635447422074L;

    private int bookId;
    //书籍名称
    private String bookName;
    //作者
    private String author;
    //编号
    private String isbn;
    //出版社
    private String publisher;
    //出版时间
    @JSONField(format = "yyyy-MM-dd")
    private Date publisherDate;
    //数量
    private int stockQuantity;
    //描述
    private String description;
    //封面路径
    private String coverImage;
    //书籍类型
    private int bookType;

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Date getPublisherDate() {
        return publisherDate;
    }

    public void setPublisherDate(Date publisherDate) {
        this.publisherDate = publisherDate;
    }

    public int getStockQuantity() {
        return stockQuantity;
    }

    public void setStockQuantity(int stockQuantity) {
        this.stockQuantity = stockQuantity;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCoverImage() {
        return coverImage;
    }

    public void setCoverImage(String coverImage) {
        this.coverImage = coverImage;
    }

    public int getBookType() {
        return bookType;
    }

    public void setBookType(int bookType) {
        this.bookType = bookType;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", isbn='" + isbn + '\'' +
                ", publisher='" + publisher + '\'' +
                ", publisherDate=" + publisherDate +
                ", stockQuantity=" + stockQuantity +
                ", description='" + description + '\'' +
                ", coverImage='" + coverImage + '\'' +
                ", bookType=" + bookType +
                '}';
    }
}
